export class EnvironmentHelper{
    private _isInWechat:boolean;
    constructor(){
        let ua = navigator.userAgent.toLowerCase();
        console.log(ua);
        if (ua.match(/micromessenger/i) || ua.match(/mqqbrowser/i)) {
           this._isInWechat = true;
        }
    }
    isInWechat():boolean{
        return this._isInWechat;
    }
}
export const environmentHelper=new EnvironmentHelper();